package com.example.mybatisdemo.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "tb_agent")
public class Agent implements Serializable {

    private static final long serialVersionUID = 1L;
	
	@Column(name = "id")
	private Long id;
	
	
	/**
	 * 代理名称
	 */
	private String name;
	
	/**
	 * 负责人
	 */
	private String master;
	
	/**
	 * 电话
	 */
	private String phone;
	
	private String password;
	
	/**
	 * 状态（0：禁用；1：可用）
	 */
	private Integer status;
	
	/**
	 * 所在地区
	 */
	private String region;
	
	/**
	 * 详细地址
	 */
	private String address;
	
	/**
	 * 级别
	 */
	private Integer level;
	
	/**
	 * 父id
	 */
	private Long pid;
	
	
	private String deepPath;
	
	/**
	 * 佣金基数
	 */
	private BigDecimal baseAmount;
	
	/**
	 * 头像
	 */
	private String portrait;
	
	private String unionId;
	
	private Date createTime;
	
	private Date updateTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMaster() {
		return master;
	}

	public void setMaster(String master) {
		this.master = master;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRegion() {
		return region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getDeepPath() {
		return deepPath;
	}

	public void setDeepPath(String deepPath) {
		this.deepPath = deepPath;
	}

	public BigDecimal getBaseAmount() {
		return baseAmount;
	}

	public void setBaseAmount(BigDecimal baseAmount) {
		this.baseAmount = baseAmount;
	}

	public String getPortrait() {
		return portrait;
	}

	public void setPortrait(String portrait) {
		this.portrait = portrait;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	

}
